package com.liujit.pay.wx.domain;

import com.liujit.pay.wx.properties.PayProperties;
import lombok.Getter;

/**
 * @description: 支付配置信息
 * @author: liujun
 * @create: 2021-02-22 10:15
 */
@Getter
public class MyPayInfo {

    /**
     * 应用Id
     */
    private String appId;

    /**
     * 商户号
     */
    private String mchId;

    /**
     * 商户秘钥
     */
    private String mchKey;

    /**
     * 商户证书路径
     */
    private String keyPath;

    /**
     * 商户证书序列号
     */
    private String serialNo;

    public MyPayInfo() {
        // 获取支付配置信息
        PayProperties payProperties = PayProperties.getInstance();
        this.appId = payProperties.getAppId();
        this.mchId = payProperties.getMchId();
        this.mchKey = payProperties.getMchKey();
        this.keyPath = payProperties.getKeyPath();
        this.serialNo = payProperties.getSerialNo();
    }
}
